
namespace ActivUFRJ.Classes.Geral
{
    public class MgrAreaInteresse
    {
        public MgrAreaInteresse()
        {

        }

        public static void SalvaListaAreasInteresse(AreaInteresse[] areasDeInteresse)
        {
            DBAreaInteresse dbAreaInteresse = new DBAreaInteresse();
            foreach (AreaInteresse areaInteresse in areasDeInteresse)
            {
                dbAreaInteresse.SalvaAreaInteresse(areaInteresse);
            }
            dbAreaInteresse.Dispose();
        }

        public static bool SalvaAreaInteresse(AreaInteresse areaDeInteresse)
        {
            DBAreaInteresse dbAreaInteresse = new DBAreaInteresse();
            return dbAreaInteresse.SalvaAreaInteresse(areaDeInteresse);
        }

        public static System.Data.DataTable GetAreasInteresseDT()
        {
            DBAreaInteresse dbAreaInteresse = new DBAreaInteresse();
            return dbAreaInteresse.GetAreasInteresseDT();
        }

    }
}